package com.china08.yxyapi.entity.db.live;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.china08.yxyapi.entity.BaseEntity;

/**
 * 直播课-课程- 课时
 * 
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "yxy_live_lesson_item", catalog = "yxy_live")
public class YxyLiveLessonItem extends BaseEntity {

    @Column(nullable = false)
    private String lessonId;// 对应的课程id
    
    @Column
    private String title; //标题

    @Column(columnDefinition = "int default 1 comment '课时的序号' ")
    private Integer itemNo = 1;

    @Column
    private Date beginDate;// 直播开始时间 YYYY-MM-DD HH:mm:ss

    @Column
    private Date endDate;// 直播结束时间

    @Column
    private Integer duration;// 直播时长，单位为分钟

    @Column
    private Integer status;// 状态 -1-取消,0-未开始,1-直播中,2-已结束,3-请假

    @Column(columnDefinition = "int default 0 comment '录播开启标识 0-未设置,1-开启,2-关闭' ")
    private Integer recordOpen = 0;//

    @Column
    private String videoId;// 对应的视频id

    // 以下为直播课创建成功之后返回的参数
    @Column(unique = true, columnDefinition = "varchar(32) comment '房间ID,14位的数字' ")
    private String roomId;

    @Column(columnDefinition = "varchar(32) comment '管理员进入房间的参加码' ")
    private String adminCode;

    @Column(columnDefinition = "varchar(32) comment '老师进入房间的参加码' ")
    private String teacherCode;

    @Column(columnDefinition = "varchar(32) comment '学生公共参加码，该参加码可以进多个学生，不互踢' ")
    private String studentCode;

    @Column(columnDefinition = "varchar(32) comment '会议类型: 例会,大会,在线教研....' ")
    private String meetingLabel;
    

    public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getVideoId() {
        return videoId;
    }

    public void setVideoId(String videoId) {
        this.videoId = videoId;
    }

    public String getLessonId() {
        return lessonId;
    }

    public void setLessonId(String lessonId) {
        this.lessonId = lessonId;
    }

    public Date getBeginDate() {
        return beginDate;
    }

    public void setBeginDate(Date beginDate) {
        this.beginDate = beginDate;
    }

    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    public Integer getDuration() {
        return duration;
    }

    public void setDuration(Integer duration) {
        this.duration = duration;
    }

    public Integer getRecordOpen() {
        return recordOpen;
    }

    public void setRecordOpen(Integer recordOpen) {
        this.recordOpen = recordOpen;
    }

    public String getRoomId() {
        return roomId;
    }

    public void setRoomId(String roomId) {
        this.roomId = roomId;
    }

    public String getAdminCode() {
        return adminCode;
    }

    public void setAdminCode(String adminCode) {
        this.adminCode = adminCode;
    }

    public String getTeacherCode() {
        return teacherCode;
    }

    public void setTeacherCode(String teacherCode) {
        this.teacherCode = teacherCode;
    }

    public String getStudentCode() {
        return studentCode;
    }

    public void setStudentCode(String studentCode) {
        this.studentCode = studentCode;
    }

    public String getMeetingLabel() {
        return meetingLabel;
    }

    public void setMeetingLabel(String meetingLabel) {
        this.meetingLabel = meetingLabel;
    }

    public Integer getItemNo() {
        return itemNo;
    }

    public void setItemNo(Integer itemNo) {
        this.itemNo = itemNo;
    }

}
